.class public Lu/aly/ag;
.super Lu/aly/at;
.source "UError.java"

# interfaces
.implements Lu/aly/q;


# direct methods
.method public constructor <init>()V
    .registers 3

    .prologue
    .line 20
    invoke-direct {p0}, Lu/aly/at;-><init>()V

    .line 21
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    invoke-virtual {p0, v0, v1}, Lu/aly/ag;->a(J)Lu/aly/at;

    .line 22
    sget-object v0, Lu/aly/au;->a:Lu/aly/au;

    invoke-virtual {p0, v0}, Lu/aly/ag;->a(Lu/aly/au;)Lu/aly/at;

    .line 23
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;)V
    .registers 2

    .prologue
    .line 26
    invoke-direct {p0}, Lu/aly/ag;-><init>()V

    .line 27
    invoke-virtual {p0, p1}, Lu/aly/ag;->a(Ljava/lang/String;)Lu/aly/at;

    .line 28
    return-void
.end method

.method public constructor <init>(Ljava/lang/Throwable;)V
    .registers 3

    .prologue
    .line 31
    invoke-direct {p0}, Lu/aly/ag;-><init>()V

    .line 32
    invoke-direct {p0, p1}, Lu/aly/ag;->a(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lu/aly/ag;->a(Ljava/lang/String;)Lu/aly/at;

    .line 33
    return-void
.end method

.method private a(Ljava/lang/Throwable;)Ljava/lang/String;
    .registers 6

    .prologue
    const/4 v0, 0x0

    .line 41
    if-nez p1, :cond_4

    .line 62
    :goto_3
    return-object v0

    .line 48
    :cond_4
    :try_start_4
    new-instance v2, Ljava/io/StringWriter;

    invoke-direct {v2}, Ljava/io/StringWriter;-><init>()V

    .line 49
    new-instance v3, Ljava/io/PrintWriter;

    invoke-direct {v3, v2}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V

    .line 50
    invoke-virtual {p1, v3}, Ljava/lang/Throwable;->printStackTrace(Ljava/io/PrintWriter;)V

    .line 51
    invoke-virtual {p1}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;

    move-result-object v1

    .line 52
    :goto_15
    if-eqz v1, :cond_1f

    .line 53
    invoke-virtual {v1, v3}, Ljava/lang/Throwable;->printStackTrace(Ljava/io/PrintWriter;)V

    .line 54
    invoke-virtual {v1}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;

    move-result-object v1

    goto :goto_15

    .line 56
    :cond_1f
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 57
    invoke-virtual {v3}, Ljava/io/PrintWriter;->close()V

    .line 58
    invoke-virtual {v2}, Ljava/io/Writer;->close()V
    :try_end_29
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_29} :catch_2a

    goto :goto_3

    .line 59
    :catch_2a
    move-exception v1

    .line 60
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_3
.end method


# virtual methods
.method public a(Z)Lu/aly/ag;
    .registers 3

    .prologue
    .line 36
    if-eqz p1, :cond_8

    sget-object v0, Lu/aly/au;->a:Lu/aly/au;

    :goto_4
    invoke-virtual {p0, v0}, Lu/aly/ag;->a(Lu/aly/au;)Lu/aly/at;

    .line 37
    return-object p0

    .line 36
    :cond_8
    sget-object v0, Lu/aly/au;->b:Lu/aly/au;

    goto :goto_4
.end method

.method public a(Lu/aly/bn;Ljava/lang/String;)V
    .registers 7

    .prologue
    .line 67
    const/4 v1, 0x0

    .line 68
    invoke-virtual {p1}, Lu/aly/bn;->s()I

    move-result v0

    if-lez v0, :cond_36

    .line 69
    invoke-virtual {p1}, Lu/aly/bn;->u()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_f
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_36

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lu/aly/bc;

    .line 70
    invoke-virtual {v0}, Lu/aly/bc;->c()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_f

    .line 77
    :goto_25
    if-nez v0, :cond_32

    .line 78
    new-instance v0, Lu/aly/bc;

    invoke-direct {v0}, Lu/aly/bc;-><init>()V

    .line 79
    invoke-virtual {v0, p2}, Lu/aly/bc;->a(Ljava/lang/String;)Lu/aly/bc;

    .line 80
    invoke-virtual {p1, v0}, Lu/aly/bn;->a(Lu/aly/bc;)V

    .line 83
    :cond_32
    invoke-virtual {v0, p0}, Lu/aly/bc;->a(Lu/aly/at;)V

    .line 84
    return-void

    :cond_36
    move-object v0, v1

    goto :goto_25
.end method
